import type { Emitter } from "mitt";
import mitt from "mitt";

type Events = {
  resize: {
    detail: {
      width: number;
      height: number;
    };
  };
  openPanel: string;
  tagViewsChange: string;
  tagViewsShowModel: string;
  logoChange: boolean;
  changLayoutRoute: {
    indexPath: string;
    parentPath: string;
  };
  handleTologyEdit: any;
  handleTologyLineEdit: any;
  handleGraphMenuTwo: any;
  graphInit: any;
  changeBarLayout: any;
  grapgMinimapCollapse: boolean;
  setGraphMode: string;
  graphLayoutActive: string;
  handleSave: string;
  handleFileShow: string;
  handleSelect: string;
  handleAllSelect: string;
  handleInvert: string;
  toolbarEvent: string;
  lockChangeEvent: string;
  handleExportData: string;
  handleExportImage: string;
  handleRelationshipExpansion: any;
  showDrawer: any;
  handleFiltersEdges: any;
  handleFiltersNodes: any;
  handleChangeLayout: any;
  handleDeleteObject: any;
  pathSelectNode: any;
  getPathSelectNode: any;
  leianEvent: any;
  dimensionEvent: any;
  handleImport: any;
  communityDetection: any;
};

export const emitter: Emitter<Events> = mitt<Events>();
